package com.test.JVM;

public class StrongRefDemo {

    public static void main(String[] args) {
        Object o1 = new Object();
        Object o2 = o1 ;
        o1 = null;
        System.gc();
        System.out.println(o1); // null
        System.out.println(o2); //java.lang.Object@677327b6 强引用
    }
}
